using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ConfeccionesJR.Entites
{
    public partial class CREDITO:BaseEntity
    {
        public CREDITO()
        {
            this.DETALLE_CREDITO = new List<DETALLE_CREDITO>();
            this.DETALLEPAGOes = new List<DETALLEPAGO>();
        }

        public int Id { get; set; }

        [Display(Name = "ClienteId")]
        [Required(ErrorMessage = "El cliente es requerido")]
        [Range(1, 100000, ErrorMessage = "El cliente es requerido")]
        public int clienteId { get; set; }

        [Display(Name = "FechaCredito")]
        [Required(ErrorMessage = "La fecha es requerida")]    
        public System.DateTime FechaCredito { get; set; }

        [Display(Name = "Total")]
        [Required(ErrorMessage = "El Total es requerido")]
        public decimal Total { get; set; }

        public virtual CLIENTE CLIENTE { get; set; }
        public virtual List<DETALLE_CREDITO> DETALLE_CREDITO { get; set; }
        public virtual List<DETALLEPAGO> DETALLEPAGOes { get; set; }

    }
}
